<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>window属性</title>

<script>
    function showWinInfo() {
        alert("分辨率大小"+window.screen.height+"X"+window.screen.width);
        alert("浏览器窗口大小"+window.outerHeight+"X"+window.outerWidth);
        alert("显示窗口大小"+window.innerHeight+"X"+window.innerWidth);
        alert("显示窗口信息"+navigator+"<br/>"+navigator.appName+"<br/>"+wnavigator.appVersion+"<br/>"+navigator.language+"<br/>"+navigator.platform+"<br/>"+navigator.userAgent);
    }
    function changeLocation() {
        window.location="https://wwww.baidu.com/";
    }
    function showNavigator() {
        alert(navigator);
        alert(navigator.appName);
        alert(navigator.appVersion);
        alert(navigator.language);
        alert(navigator.platform);
        alert(navigator.userAgent);
    }
    function  locationInfo() {
    alert(""+window.location.host);
    alert(""+window.location.hostname);
    alert(""+window.location.herf);

    }

</script>

</head>
<body>
<input type="button" value="显示Window信息" onclick="showWinInfo()">
<input type="button" value="changeLocation" onclick="changeLocation()">
<input type="button" value="显示navigator" onclick="showNavigator()">

</body>
</html>